/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.customer.student;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 客户学生表 Model
 *
 * @author guagua
 * @date 2025-06-27 23:00:09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomersStudentModel extends ApiWrapper {

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "姓名", order = 0)
    @ExcelInfo
    @Validator({
            ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(50)
    private String name;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    @ExcelProperty(value = "性别", order = 1)
    @ExcelInfo(dictType = "customer_sex")
    @ValidatorLenMax(2)
    private String gender;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期")
    @ExcelProperty(value = "出生日期", order = 2)
    @ExcelInfo
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    /**
     * 学校
     */
    @ApiModelProperty(value = "学校")
    @ExcelProperty(value = "学校", order = 3)
    @ExcelInfo
    @ValidatorLenMax(220)
    private String school;

    /**
     * 年级
     */
    @ApiModelProperty(value = "年级")
    @ExcelProperty(value = "年级", order = 4)
    @ExcelInfo(dictType = "student_grade")
    @ValidatorLenMax(22)
    private String grade;

    /**
     * 班级
     */
    @ApiModelProperty(value = "班级")
    @ExcelProperty(value = "班级", order = 5)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String className;

    /**
     * 健康状况
     */
    @ApiModelProperty(value = "健康状况")
    @ExcelProperty(value = "健康状况", order = 6)
    @ExcelInfo
    @ValidatorLenMax(220)
    private String healthInfo;

    /**
     * 需求
     */
    @ApiModelProperty(value = "需求")
    @ExcelProperty(value = "需求", order = 7)
    @ExcelInfo
    private String specialNeeds;

    /**
     * 教育类型
     */
    @ApiModelProperty(value = "教育类型")
    @ExcelProperty(value = "教育类型", order = 8)
    @ExcelInfo(dictType = "student_education_type")
    private String educationType;


    /**
     * 关系类型
     */
    @ApiModelProperty(value = "与家长关系")
    @Validator({
            ValidatorType.IS_NOT_NULL
    })
    private String relationType;

    /**
     * 关系类型
     */
    @ApiModelProperty(value = "主要联系人")
    @Validator({
            ValidatorType.IS_NOT_NULL
    })
    private Integer isPrimary = 0;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    @ExcelProperty(value = "头像", order = 9)
    @ExcelInfo
    @ValidatorLenMax(220)
    private String avatar;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @ExcelProperty(value = "状态", order = 10)
    @ExcelInfo(dictType = "student_status")
    @Validator({
            ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(2)
    private String status = "1";

    /**
     * 可见老师
     */
    @ApiModelProperty(value = "可见老师")
    @ExcelProperty(value = "可见老师", order = 11)
    @ExcelInfo
    private String teachers;

    /**
     * 父级主键集合
     */
    @ApiModelProperty(value = "父级主键集合")
    @ExcelProperty(value = "父级主键集合", order = 13)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String orgIds;


}